/* Lac Viet ERP                                                
 * Copyright (c) 2013 Lac Viet                                 
 * http://www.lacviet.com.vn                                   
 *=============================================================
 * File name            : CF_tblUMIDConversion.cs         
 * Created by           : Auto - 04/23/2014 15:03:45                     
 * Last modify          : Auto - 04/23/2014 15:03:45                     
 * Version              : 1.0                                  
 * ============================================================
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace LineOfBusiness.Poco
{
	[Serializable]
	public partial class CF_tblUMIDConversion : BaseEntity
	{
		public CF_tblUMIDConversion()
		{
			this.IDNumber = 0;
			this.ConvertFactor = 0;
			this.InvertFactor = 0;
		}

	    #region Properties

		private int _IDNumber;

        [Key]
		[RegularExpression(@"[a-zA-Z0-9_-]*")]
		[Required]
        public int IDNumber 
		{ 
			get
			{
                return _IDNumber;
			}
			set 
			{ 
                _IDNumber = value;
			} 
		}

		private string _FromUMID;
		[Required]
        [MaxLength(10)]
        public string FromUMID 
		{ 
			get
			{
                return _FromUMID;
			}
			set 
			{ 
                _FromUMID = value;
			} 
		}

		private string _ToUMID;
		[Required]
        [MaxLength(10)]
        public string ToUMID 
		{ 
			get
			{
                return _ToUMID;
			}
			set 
			{ 
                _ToUMID = value;
			} 
		}

		private decimal _ConvertFactor;
		[Required]
        public decimal ConvertFactor 
		{ 
			get
			{
                return _ConvertFactor;
			}
			set 
			{ 
                _ConvertFactor = value;
			} 
		}

		private decimal _InvertFactor;
		[Required]
        public decimal InvertFactor 
		{ 
			get
			{
                return _InvertFactor;
			}
			set 
			{ 
                _InvertFactor = value;
			} 
		}
		/// <summary>
        /// Column: CF_tblUMID.UMID
        /// </summary>
		public CF_tblUMID CF_tblUMID { get;set; }


        #endregion
	}
}
